package fm.dongman.modellib.model;

import android.os.Parcel;
import android.os.Parcelable;

import fm.dongman.animefm.contractlib.IModel;

/**
 * 用户信息
 * Created by KUIGE on 2017/10/13.
 */

public class UserModel implements IModel.IUserModel {

    //用户名
    private String mUserName;

    //用户id
    private String mUserId;

    //用户头像
    private String mAvatarUrl;

    //用户简介
    private String mDescription;

    //用户粉丝数量
    private String mFansNum;

    //用户消息数
    private String mMessageNum;

    //用户关注数
    private String mFlowNum;

    //用户关注时间
    private String mFlowTime;

    //漫单数量
    private String mSheetCount;

    //邮箱
    private String mEmail;

    //用户密码
    private String mPassword;

    //令牌
    private String mToken;

    //性别
    private String mGender;

    //更新的令牌
    private String mRefreshToken;

    //评论数量
    private String mCommentCount;

    // 手机号
    private String mPhone;

    // 是否关注
    private String mIsFollow;

    public UserModel()
    {

    }

    public UserModel(String mUserName,String mUserId,String mAvatarUrl,String mUserSummary,
                     String mUserFansNum,String mMandanCount,String mUserEmail,String mUserPassword)
    {
        this.mAvatarUrl = mAvatarUrl;
        this.mUserName = mUserName;
        this.mUserId = mUserId;
        this.mDescription = mUserSummary;
        this.mFansNum = mUserFansNum;
        this.mSheetCount = mMandanCount;
        this.mEmail = mUserEmail;
        this.mPassword = mUserPassword;
    }


    public String getPhone() {
        return mPhone;
    }

    public void setPhone(String phone) {
        mPhone = phone;
    }

    public String getUserName() {
        return mUserName;
    }

    public void setUserName(String userName) {
        mUserName = userName;
    }

    public String getUserId() {
        return mUserId;
    }

    public void setUserId(String userId) {
        mUserId = userId;
    }

    public String getAvatarUrl() {
        return mAvatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        mAvatarUrl = avatarUrl;
    }

    public String getDescription() {
        return mDescription;
    }

    public void setDescription(String description) {
        mDescription = description;
    }

    public String getFansNum() {
        return mFansNum;
    }

    public void setFansNum(String fansNum) {
        mFansNum = fansNum;
    }

    public String getSheetCount() {
        return mSheetCount;
    }

    public void setSheetCount(String sheetCount) {
        mSheetCount = sheetCount;
    }

    public String getEmail() {
        return mEmail;
    }

    public void setEmail(String email) {
        mEmail = email;
    }

    public String getCommentCount() {
        return mCommentCount;
    }

    public void setCommentCount(String commentCount) {
        mCommentCount = commentCount;
    }

    public String getPassword() {
        return mPassword;
    }

    public void setPassword(String password) {
        mPassword = password;
    }

    public String getToken() {
        return mToken;
    }

    public void setToken(String token) {
        mToken = token;
    }

    public String getRefreshToken() {
        return mRefreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        mRefreshToken = refreshToken;
    }

    public String getMessageNum() {
        return mMessageNum;
    }

    public void setMessageNum(String messageNum) {
        mMessageNum = messageNum;
    }

    public String getFlowNum() {
        return mFlowNum;
    }

    public String getGender() {
        return mGender;
    }

    public void setGender(String gender) {
        mGender = gender;
    }

    public String getFlowTime() {
        return mFlowTime;
    }

    public void setFlowTime(String flowTime) {
        mFlowTime = flowTime;
    }

    public void setFlowNum(String flowNum) {
        mFlowNum = flowNum;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(mAvatarUrl);
        dest.writeString(mFansNum);
        dest.writeString(mUserId);
        dest.writeString(mUserName);
        dest.writeString(mDescription);
        dest.writeString(mSheetCount);
        dest.writeString(mEmail);
        dest.writeString(mPassword);
        dest.writeString(mToken);
        dest.writeString(mRefreshToken);
        dest.writeString(mFlowNum);
        dest.writeString(mMessageNum);
        dest.writeString(mFlowTime);
        dest.writeString(mGender);
    }

    public static Parcelable.Creator<UserModel> CREATOR = new Creator<UserModel>() {
        @Override
        public UserModel createFromParcel(Parcel source) {
            UserModel model = new UserModel();
            model.setAvatarUrl(source.readString());
            model.setFansNum(source.readString());
            model.setUserId(source.readString());
            model.setUserName(source.readString());
            model.setDescription(source.readString());
            model.setSheetCount(source.readString());
            model.setEmail(source.readString());
            model.setPassword(source.readString());
            model.setRefreshToken(source.readString());
            model.setToken(source.readString());
            model.setFlowNum(source.readString());
            model.setMessageNum(source.readString());
            model.setFlowTime(source.readString());
            model.setGender(source.readString());
            return model;
        }

        @Override
        public UserModel[] newArray(int size) {
            return new UserModel[size];
        }
    };

    public String getmIsFollow() {
        return mIsFollow;
    }

    public void setmIsFollow(String mIsFollow) {
        this.mIsFollow = mIsFollow;
    }
}
